const path = require("path");
const { app } = require("electron");

// 项目配置文件
module.exports.path_config_config_json = path.join(
  app.getPath("exe"),
  "../config/config.json"
);
// 项目配置文件夹
module.exports.path_config = path.join(app.getPath("exe"), "../config");
let d=  path.join(app.getPath("exe"), "../config")


// 主窗口logo（左上角）
module.exports.logo_window = path.join(
  __dirname,
  "../../public/img/logo-window.ico"
);

// 托盘logo
module.exports.logo_tray = path.join(
  app.getPath("exe"),
  "../public/img/logo-tray.ico"
);
let a = path.join(
  app.getPath("exe"),
  "../public/img/logo-tray.ico"
);
// log.info("日志");

setTimeout(() => {
  const log = require("../start/log");
  // console.log("log", log);
  log.info("保存在", a);
  log.info("exe路径", app.getPath("exe"));
}, 0);

// 符文图片位置
// module.exports.rune_path = path.join('file://',app.getPath("exe"), "../resources/public/runes");

// log保存位置
module.exports.log_path = path.join(app.getPath("exe"), "../config/main.log");
